FROM openjdk:8-jre-slim

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir /app
ADD xxl-job-admin/target/*.jar /app/app.jar

ENTRYPOINT ["java", "-jar", "app.jar", "--spring.config.location=/app/config/"]